﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace N03_11HCA_HTTTHD.Models
{
    public class DoanhNghiep_ChiTiet
    {
        public DoanhNghiep_ChiTiet(Data_DAO_DTO_Lib.DTO.DOANHNGHIEP_DTO ob, List<Data_DAO_DTO_Lib.DTO.DTO> lDanhMuc)
        {
            setListDanhMucTuDTO(lDanhMuc);
            this.ttDoanhNghiep = ob;
        }


        void setListDanhMucTuDTO(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            listDanhMuc = new List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                listDanhMuc.Add((Data_DAO_DTO_Lib.DTO.DANHMUC_DTO)l[i]);
            }
        }

        private List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO> listDanhMuc;
        public List<Data_DAO_DTO_Lib.DTO.DANHMUC_DTO> ListDanhMuc
        {
            get
            {
                return listDanhMuc;
            }
            set
            {
                listDanhMuc = value;
            }
        }

        private Data_DAO_DTO_Lib.DTO.DOANHNGHIEP_DTO doanhNghiep;
        public Data_DAO_DTO_Lib.DTO.DOANHNGHIEP_DTO ttDoanhNghiep
        { 
            get{
                return doanhNghiep;
            }
            set{
                doanhNghiep = value;
            } 
        }
    }
}
